package cn.qqtheme.framework.entity;

import android.text.TextUtils;

/* loaded from: classes.dex */
public abstract class Area extends JavaBean implements LinkageItem {
    private String areaId;
    private String areaName;

    public Area() {
    }

    public Area(String str) {
        this.areaId = "";
        this.areaName = str;
    }

    public Area(String str, String str2) {
        this.areaId = str;
        this.areaName = str2;
    }

    public String getAreaId() {
        return this.areaId;
    }

    public void setAreaId(String str) {
        this.areaId = str;
    }

    public String getAreaName() {
        return this.areaName;
    }

    public void setAreaName(String str) {
        this.areaName = str;
    }

    @Override // cn.qqtheme.framework.entity.LinkageItem
    public Object getId() {
        return this.areaId;
    }

    @Override // cn.qqtheme.framework.entity.WheelItem
    public String getName() {
        return this.areaName;
    }

    public boolean equals(Object obj) {
        if (obj instanceof Area) {
            Area area = (Area) obj;
            if (!TextUtils.isEmpty(this.areaId)) {
                return this.areaId.equals(area.getAreaId());
            }
            return this.areaName.equals(area.getAreaName());
        }
        return false;
    }

    @Override // cn.qqtheme.framework.entity.JavaBean
    public String toString() {
        return "areaId=" + this.areaId + ",areaName=" + this.areaName;
    }
}
